package com.usian.service;

import com.usian.pojo.User;
import org.springframework.stereotype.Service;

@Service
public class ProviderService {
    public User getById(Integer id){
        /*try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }*/
        return new User(id,"9000",55) ;
    }

    public User getById(Integer id,String nam){
        if (id==4){
            int a=6/0;
        }
        return new User(id,nam,50);
    }
}
